<?php

 $serverdb="localhost";

$userdb="root";

$passdb="ngockieuvan@vccorp.vn";

$namedb="db_pearlriverspa";

 $str='<?xml version="1.0" encoding="utf-8" standalone="yes"?>';

 $str.='<images fadeTime="2" imageTime=".05" widthMin="0" heightMin="0" order="ordered">';

 $con=@mysql_connect($serverdb, $userdb, $passdb) or die("Khong the ket noi co so du lieu.");

    mysql_select_db($namedb); 

    $result = mysql_query("select * from link_websites where link_websites_status=0 and link_websites_categoriesid=1 order by link_websites_sortorder asc",$con);



	while(($row=mysql_fetch_assoc($result)))

	{

	  $str.='<back><image><![CDATA[../'. $row['link_websites_img'] .']]></image></back>';

    }

    $str.='</images>';

  



    $Handle = fopen('../../slide_fade/data.xml', 'w');

    fwrite($Handle, $str);  

    fclose($Handle);

?>

